package com.unknowpupil.alibaba.cloud.mybatis.enums;


import com.unknowpupil.alibaba.cloud.mybatis.IBaseEnum;
import lombok.Getter;

/**
 * @Classname: StateEnum
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/1/16 12:27
 * @Description:
 * @Version: 1.0
 */
@Getter
public enum StateEnum implements IBaseEnum<Integer> {

    ACTIVE(1, "正常"),
    INACTIVE(2, "禁用");

    private final int state;
    private final String descption;

    StateEnum(int state, String descption) {
        this.state = state;
        this.descption = descption;

    }

    @Override
    public Integer getValue() {
        return state;
    }

    @Override
    public String getDescription() {
        return descption;
    }
}
